import { sysDisableType } from '@/enum';

export const filterSysDisableType = type => {
  const sysDisableTypeobj = sysDisableType.find(obj => type === obj.type);
  return sysDisableTypeobj ? sysDisableTypeobj.name : null;
};
 // 根据状态渲染对应标签
 export const formatUrgency = type => {
  let typeStyle = ''
  switch (type) {
    case '1':
      typeStyle = 'tag-high'
      break
    case '2':
      typeStyle = 'tag-center'
      break
    case '3':
      typeStyle = 'tag-low'
      break
  }
  return typeStyle
}